package com.xnyzc.lhy.task.fegin.driver;


import com.xnyzc.lhy.common.entity.Rv;
import com.xnyzc.lhy.task.config.TokenAuthConfiguration;
import com.xnyzc.lhy.task.fallback.driver.QuartzDriverCashWithdrawalServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

@Service
@FeignClient(name = "${feign.applicationName.finance}", configuration = TokenAuthConfiguration.class, fallback = QuartzDriverCashWithdrawalServiceFallback.class)
public interface QuartzDriverCashWithdrawalService {

    /**
     * 清除司机可提现次数
     *
     * @return
     */
    @GetMapping(value = "/finance/oa-dcash-withdrawal/clearDriverCashWithdrawal")
    void clearDriverCashWithdrawal();

    @PostMapping("/finance/oa-dfreeze/reFreezeBalance")
    public Rv reFreezeBalance();

}
